package com.tbvtc.agriculturalcreditchainserver2025.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.tbvtc.agriculturalcreditchainserver2025.dto.Cart.GroupData;
import com.tbvtc.agriculturalcreditchainserver2025.dto.Cart.UserOrderLimitDot;
import com.tbvtc.agriculturalcreditchainserver2025.entity.Test;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tbvtc.agriculturalcreditchainserver2025.vo.ConsumerVo.PlaceOrderVo;

import java.util.List;

/**
 * <p>
 * 测试order表 服务类
 * </p>
 *
 * @author syh
 * @since 2025-04-18
 */
public interface ITestService extends IService<Test> {

    IPage<GroupData> findOrderByIdPage(UserOrderLimitDot userOrderLimitDot);
    List<GroupData> findOrderById(UserOrderLimitDot userOrderLimitDot);
    List<GroupData> findOrderByConsumerId(UserOrderLimitDot userOrderLimitDot);

    String buy(PlaceOrderVo placeOrderVo);
}
